
<script type="text/javascript">
         $(document).ready( function() {
            // alert($('#unit').val());
            <?php if($status == "sukses"){?>
            $('#unit').attr('disabled', 'disabled');
            <?php }?>
         });
</script>


<form method="post" id="myForm" action="<?php echo $form_action?>">
    <table width="95%" border="0" cellpadding="0" cellspacing="0" id="data" align="left">
        <tr><td>&nbsp;<td></tr>
        <tr>

            <td colspan="2" align="center">
                Unit Baru telah Tersimpan, Silahkan Klik 
                    <input type="submit" name="submit" value="OK">
                untuk menyimpan
                <?php
                $flashmessage = $this->session->flashdata('message2');
                echo ! empty($flashmessage) ? '<p class="field_error">' . $flashmessage . '</p>': '';
                ?>
            </td>
        </tr>
    </table>
</form>
